package testExtendPlus;

import effectiveJava.reflect.proxy.Subject;
import testExtendPlus.inter.SubjectNew;

/**
 * Created by dycong on 2017/9/17.
 */
public class RealSubjectNew implements Subject, SubjectNew {

    public Object request() {
        return "RealSubjectNew OK";
    }

    @Override
    public Object response() {
        return "RealSubjectNew response";
    }

    public RealSubjectNew() {
        System.out.println("RealSubjectNew");
    }

    public static void main(String[] args) {
        Subject subject = new RealSubjectNew();
        SubjectNew subjectNew = new RealSubjectNew();
        System.out.println(subject.response());
        System.out.println(subjectNew.response());
    }
}
